package com.third.login;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

/**
 * Created by fzh on 2017/8/1.
 */

public abstract class ThirdLoginBase {
    protected Activity act;
    protected String appKey;
    protected String appId;
    protected ThirdLoginAuthListener thirdLoginAuthListener;
    public ThirdLoginBase(Activity act,String appKey,String appId) {
        this.act = act;
        this.appId = appId;
        this.appKey = appKey;
    }
    public void setThirdLoginAuthListener(ThirdLoginAuthListener thirdLoginAuthListener){
        this.thirdLoginAuthListener = thirdLoginAuthListener;
    }
    public abstract void thirdLogin();
    public abstract void thirdLogout();
    public abstract void cancelLogin();
    public abstract void onActivityResult(int requestCode, int resultCode, Intent data);
    public abstract void onDestroy();
    public abstract void onSaveInstanceState(Bundle outState);
}
